package entity

import (
	"time"
)

type DbInfo struct {
	ID                 int64     `gorm:"column:id;primary_key" json:"id"`
	AliasName          string    `gorm:"column:alias_name" json:"alias_name"`
	DbType             string    `gorm:"column:db_type" json:"db_type"`
	User               string    `gorm:"column:user" json:"user"`
	Password           string    `gorm:"column:password" json:"password"`
	IP                 string    `gorm:"column:ip" json:"ip"`
	Port               string    `gorm:"column:port" json:"port"`
	DbName             string    `gorm:"column:db_name" json:"db_name"`
	DbState            Status    `gorm:"column:db_state" `
	ConnectionCount    int       `gorm:"column:connection_count"`
	MaxConnectionCount int       `gorm:"column:max_connection_count"`
	DatabaseSize       string    `gorm:"column:database_size"`
	CreateTime         time.Time `gorm:"column:create_time;autoUpdateTime" swaggertype:"primitive,string"`
	UpdateTime         time.Time `gorm:"column:update_time;autoUpdateTime" swaggertype:"primitive,string"`
}
